import request from '@/api/request'

//数据列表
export function index(params) {
    return request({ url: '/app/SfcOptrpt/index',method: 'post',data: params})
}



//包装汇报检验列表
export function packageList(params) {
    return request({ url: '/app/SfcOptrpt/package_list',method: 'post',data: params})
}


//查看详情
export function detail(params) {
    return request({ url: '/app/SfcOptrpt/sfcoptrptdetail',method: 'post',data: params})
}

//根据工序号获取汇报信息(包装车间)
export function getReportByOperNo(params) {
    return request({ url: '/app/SfcOptrpt/get_report_by_operNo',method: 'post',data: params})
}

//保存包装间的汇报信息
export function createReportPackage(params) {
    return request({ url: '/app/SfcOptrpt/create_report_package',method: 'post',data: params})
}


//审核包装间汇报检验单
export function auditReportPackage(params) {
    return request({ url: '/app/SfcOptrpt/audit_report_package',method: 'post',data: params})
}


//修改工序汇报详情
export function updateOprptDetail(params) {
    return request({ url: '/app/SfcOptrpt/update_optrpt_detail',method: 'post',data: params})
}



//修改工序汇报详情
export function updatePackage(params) {
    return request({ url: '/app/SfcOptrpt/update_package',method: 'post',data: params})
}